package com.local.designpatterns.mvcmodel;
/**
 * 控制层 控制M（改值、赋值）和V，通过view方法输出
 * @author Administrator
 *
 */
public class WifeController {
	private WifeModel model;
	private WifeView view;
	
	
	public WifeController(WifeModel model,WifeView view) {
		super();
		this.view = view;
		this.model = model;
	}
	public WifeView getView() {
		return view;
	}
	public void setView(WifeView view) {
		this.view = view;
	}

	public String getProperty() {
		return model.getProperty();
	}
	public void setProperty(String property) {
		model.setProperty(property);
	}
	public String getName() {
		return model.getName();
	}
	public void setName(String name) {
		model.setName(name);
	}
	public String getType() {
		return model.getType();
	}
	public void setType(String type) {
		model.setType(type);
	}
	public String getWeapon() {
		return model.getWeapon();
	}
	public void setWeapon(String weapon) {
		model.setWeapon(weapon);
	}
	
	public void getWife() {
		view.getWifeDetails(model.getName(), model.getProperty(), model.getType(), model.getWeapon());
	}
	
	
}
